﻿<%@ Page Title="Activities" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Activities.aspx.cs" Inherits="Vision.Web.Pages.Activities" %>
<asp:Content ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <h2>Activities</h2>
    <div>
        <table>
            <tr valign="top">
                <td style="background-color:#eeeeee;border: 1px solid #4b6c9e;">                                        
                    <asp:TreeView OnSelectedNodeChanged="tvVisionFolders_SelectedNodeChanged" ID="tvVisionFolders" runat="server" Width="200">
                        <SelectedNodeStyle Font-Bold="true" />
                    </asp:TreeView>                                        
                </td>
                <td>
                    <asp:GridView ID="gvVisionActivities" runat="server" AutoGenerateColumns="false">
                        <HeaderStyle BackColor="#4b6c9e" ForeColor="Black" Font-Size="8" Font-Bold="true" />
                        <RowStyle Font-Size="8" />
                        <Columns>
                            <asp:TemplateField HeaderStyle-Width="60" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle">
                                <ItemTemplate>                                    
                                    <asp:ImageButton ImageAlign="AbsMiddle" ImageUrl="~/Images/ScheduleIcon.gif" Height="15" Width="15" runat="server" CommandName="Schedule" CommandArgument='<%#Eval("Id")%>' ToolTip="Scheduling" OnClick="gvVisionActivitiesAction_Click" />                                    
                                    <asp:ImageButton ImageAlign="AbsMiddle" ImageUrl="~/Images/LogIcon.gif" Height="15" Width="15" runat="server" CommandName="Log" CommandArgument='<%#Eval("Id")%>' ToolTip="Logging" OnClick="gvVisionActivitiesAction_Click" />
                                    <asp:ImageButton ImageAlign="AbsMiddle" ImageUrl="~/Images/RunIcon.gif" Height="15" Width="15" runat="server" CommandName="Queue" CommandArgument='<%#Eval("Id")%>' ToolTip="Queue Activity For Immediate Execution" OnClick="gvVisionActivitiesAction_Click" OnClientClick="javascript:return confirm('Do you want to execute this activity?')"/>
                                </ItemTemplate>                                
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Name" DataField="Name" HeaderStyle-Width="175" />
                            <asp:BoundField HeaderText="Key" DataField="Key" HeaderStyle-Width="175" />                            
                            <asp:BoundField HeaderText="Description" DataField="Description" HeaderStyle-Width="175" />
                            <asp:BoundField HeaderText="Created" DataField="Created" DataFormatString="{0:d}" HeaderStyle-Width="50" />
                            <asp:BoundField HeaderText="Modified" DataField="Modified" DataFormatString="{0:d}" HeaderStyle-Width="50" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
